module.exports = function(grunt){
	grunt.initConfig({
		jade:{
			compile:{
				files:[
					{
						expand:true,cwd:'',src:['*.jade'],dest:'build',ext:'.html'	
					},
					{
						expand:true,cwd:'includes',src:['*.jade'],dest:'build/includes',ext:'.html'	
					},
					{
						expand:true,cwd:'pages',src:['*.jade'],dest:'build/pages',ext:'.html'	
					}
				]
			}
		},
		copy:{
			copy_lib:{
				files:[{expand:true,cwd:'',src:['lib/**'],dest:'build'}]
			}
		},
		sass:{
			compile:{
				files:[
					{
						expand:true,cwd:'sass',src:['*.scss'],dest:'build/css',ext:'.css'			
					}
				]
			}
		},
		watch:{
			index:{files:['*.jade','includes/*.jade','pages/*.jade'],tasks:'jade'},
			sass:{files:['sass/*.scss'], tasks:'sass'},
			copy_lib:{files:['lib/**'],tasks:'copy:copy_lib'}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-jade');
	grunt.loadNpmTasks('grunt-contrib-sass');
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-contrib-watch');
}